package cn.amarone.scaffold.config.business.common;

import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Amarone
 * @version 1.0
 * @description: 定义统一的业务controller接口规范
 */
public abstract class BaseController {

    /***
     * @description: 所有常规分页查询必须重写此方法
     */
    public <T extends BaseReqPage> BaseRsp queryByPage(@RequestBody T para) {
        return BaseRsp.success();
    }

    /***
     * @description: 所有常规查询详情必须重写此方法
     */
    public <T extends BaseReq> BaseRsp queryDetail(@RequestBody T para) {
        return BaseRsp.success();
    }

}
